module.exports = (cli) => {
  cli.injectFeature({
    name: 'gitHooks',
    value: 'githook',
    short: 'gitHooks',
    description: 'Check and enforce code quality on fix or commit',
    checked: true
  })

  cli.onPromptComplete((answers, options) => {
    if (answers.features.includes('githook')) {
      options.plugins['githook'] = true
    }
  })
}
